Foxit PDF SDK
FoxitPDFSDKPython3.AccessibilityTextInfo Class Reference

Inherits FoxitPDFSDKPython3._object.

Public Member Functions

def AccessibilityTextInfo ()
 Constructor. More...
 
def Set (text, rect, data_index, text_color, background_color, border_color)
 Set value. More...
 

Static Public Attributes

 background_color = _fsdk.AccessibilityTextInfo_background_color
 The background fill color of the text area.
 
 border_color = _fsdk.AccessibilityTextInfo_border_color
 The color used of the border of the text area.
 
 data_index = _fsdk.AccessibilityTextInfo_data_index
 Index that maps this text item back to its entry in the page's reading-order data. A non-negative value is a valid order-data index; -1 means this text item is not associated with any order data (the default).
 
 rect = _fsdk.AccessibilityTextInfo_rect
 The bounding rectangle of the text content.
 
 text = _fsdk.AccessibilityTextInfo_text
 The text content used for accessibility visualization.
 
 text_color = _fsdk.AccessibilityTextInfo_text_color
 The color used of the text.
 

Detailed Description

This class represents accessibility text info.

Constructor & Destructor Documentation

◆ AccessibilityTextInfo()

def FoxitPDFSDKPython3.AccessibilityTextInfo.AccessibilityTextInfo ( )

Constructor.

Constructor, with another accessibility text info object.

Parameters
[in]otherAnother accessibility text info object whose values are copied to initialize the current object.

Member Function Documentation

◆ Set()

def FoxitPDFSDKPython3.AccessibilityTextInfo.Set (   text,
  rect,
  data_index,
  text_color,
  background_color,
  border_color 
)

Set value.

Parameters
[in]textThe text content to display for accessibility visualization.
[in]rectThe bounding rectangle of the text content.
[in]data_indexIndex that maps this text item back to its entry in the page's reading-order data. Pass a non-negative order-data index, or -1 if this text item is not associated with any order data.
[in]text_colorThe foreground color used to draw the text.
[in]background_colorThe background fill color of the text area.
[in]border_colorThe border color of the text area.
Returns
None.